package com.xk857.simpleeffect.enums;

import com.xk857.simpleeffect.utils.OkHttpUtils;

public enum RequestEnum {

    LOGIN_CODE("获取登录验证码", OkHttpUtils.BASE_URL + "/api/v1/customer/login/code"),
    LOGIN("客户登录", OkHttpUtils.BASE_URL + "/api/v1/customer/login"),
    LOGIN_BY_CODE("验证码方式登录", OkHttpUtils.BASE_URL + "/api/v1/customer/login/code/type"),
    REGISTER("用户注册", OkHttpUtils.BASE_URL + "/api/v1/customer/register"),
    ADD_BUSINESS("添加待办", OkHttpUtils.BASE_URL + "/api/v1/business"),
    ADD_PROJECT("添加/修改项目", OkHttpUtils.BASE_URL + "/api/v1/project"),
    TODAY_BUSINESS_LIST("查询今日待办", OkHttpUtils.BASE_URL + "/api/v1/business/customer/search/today"),
    ADD_MATTER("添加/修改每日记录", OkHttpUtils.BASE_URL + "/api/v1/matter"),
    BUSINESS_DATE_HAVE("查询用户所有有任务的时间集合", OkHttpUtils.BASE_URL + "/api/v1/business/have"),
    GET_ME_PROJECT("获取我的项目", OkHttpUtils.BASE_URL + "/api/v1/project/customer/my/project/list"),
    GET_ME_PROJECT_SIMPLE("获取我的项目(简易)", OkHttpUtils.BASE_URL + "/api/v1/project/me/simple"),
    UPDATE_PERSON_ME("修改个人信息", OkHttpUtils.BASE_URL + "/api/v1/customer/update/me"),
    UPLOAD_IMAGE("上传图片", OkHttpUtils.BASE_URL + "/api/v1/oss/upload"),
    GET_ME_INFO("获取个人信息", OkHttpUtils.BASE_URL + "/api/v1/customer/search/info/me"),
    ADD_FRIENDSHIP("识别二维码发送好友id", OkHttpUtils.BASE_URL + "/api/v1/friendship/add"),
    GET_MY_FRIEND_LIST("获取我的好友列表", OkHttpUtils.BASE_URL + "/api/v1/friendship/my/friend/list"),
    ADD_FRIEND_TO_PROJECT("邀请好友进入项目,返回失败数量", OkHttpUtils.BASE_URL + "/api/v1/project/customer/invitation/friend"),
    ADD_FRIEND_TO_BUSINESS("邀请好友进入待办,返回失败数量", OkHttpUtils.BASE_URL + "/api/v1/business/customer/invitation/friend"),
    UPDATE_FRIEND_NICK_NAME("修改好友昵称", OkHttpUtils.BASE_URL + "/api/v1/friendship/nickname"),

    DELETE_PROJECT_CUSTOMER("移出项目成员", OkHttpUtils.BASE_URL + "/api/v1/project/customer/del/customer"),
    DELETE_BUSINESS_CUSTOMER("移出待办成员", OkHttpUtils.BASE_URL + "/api/v1/business/customer/del/customer"),
    CREATE_FRIEND_SHARE_URL("获取个人好友分享链接二维码", OkHttpUtils.BASE_URL + "/api/v1/friendship/create/add/friend/url"),
    GET_PRIVATE_NOTICE("获取隐私协议", OkHttpUtils.BASE_URL + "/api/v1/about/primary"),
    GET_USER_NOTICE("获取用户协议", OkHttpUtils.BASE_URL + "/api/v1/about/user"),

    ADD_OPINION("添加反馈/查询反馈", OkHttpUtils.BASE_URL + "/api/v1/opinion"),
    ;

    private final String url;
    private final String msg;

    RequestEnum(String msg, String url) {
        this.url = url;
        this.msg = msg;
    }

    public String getUrl() {
        return url;
    }

    public String getMsg() {
        return msg;
    }
}
